package com.zbkj.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.zbkj.common.model.activity.SportfolioMarketActivity;
import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.request.merchant.MerchantSportfolioMarketSearchRequest;

import java.util.List;

/**
 * MerchantSportfolioMarketActivityService 接口实现
 * +----------------------------------------------------------------------
 * | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 * +----------------------------------------------------------------------
 * | Author: CRMEB Team <admin@crmeb.com>
 * +----------------------------------------------------------------------
 */
public interface MerchantSportfolioMarketActivityService extends IService<SportfolioMarketActivity> {

    /**
     * 组合营销列表
     * @param request 请求参数
     * @return List
     */
    PageInfo<SportfolioMarketActivity> findPage(MerchantSportfolioMarketSearchRequest request, PageParamRequest pageParamRequest);

    List<SportfolioMarketActivity> findAllist(MerchantSportfolioMarketSearchRequest request);

    /**
     * 新增组合营销
     * @param request 请求参数
     * @return 新增结果
     */
    Boolean add(SportfolioMarketActivity request);

    /**
     * 组合营销详情
     */
    SportfolioMarketActivity activityDetail(Integer id);

    /**
     * 修改组合营销
     * @param request 请求参数
     * @return 修改结果
     */
    Boolean updateSportfolioMarket(SportfolioMarketActivity request);

    /**
     * 删除组合营销
     * @param id 商户满减折扣ID
     * @return 删除结果
     */
    Boolean delete(Integer id);
}
